Why is $b "b" in this logic when echoing out ${$b}
Posted
by user275074
on Stack Overflow
See other posts from Stack Overflow
or by user275074
Published on 2010-03-27T09:02:03Z
Indexed on
2010/03/27
9:23 UTC
Read the original article
Hit count: 187
I'd have expected ${$b} to be 'a' but it is 'b', why is this the case?
$a = "b";
$b = "a";
Sorry again I forgot to put ${$b} produces "b"
© Stack Overflow or respective owner